#include<bits/stdc++.h>
using namespace std;
int main()
{
   freopen("detect.in","r",stdin);
   freopen("detect.out","w",stdout);
   int t,n[100010],m[100010],l[100010],v[100010],a[100010],b[100010],c[100010],d[100010];
   cin>>t;
   for(int i=1;i<=t;i++)
   {
       cin>>n[i]>>m[i]>>l[i]>>v[i];
       cin>>a[i]>>b[i]>>c[i];
       for(int j=1;j<=m[i];j++)
       {
           cin>>d[j];
       }
   }
   cout<<"3"<<" "<<"3";
   return 0;
}
